home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_05
/
1005063a
< prev
next >
Wrap
Text File
|
1992-03-03
|
717b
|
41 lines
/* Listing 3 */
/*****************************************************
ADC.C
Routines for basic control of the ADC on the
Lab Master AD.
Copyright Don Bradley, 1991.
Permission is granted for used of these routines
in any manner as long as this copyright notice is
included.
Tested using Quick C 2.5 and MSC 6.0 on a
Toshiba T5200.
*****************************************************/
#include <conio.h>
#include "labmastr.h"
void disable_adc()
/*& Disable adc through stopping timer 5's output. */
{
timer5_off();
}
void enable_adc()
/*& Enable adc through starting timer 5's output. */
{
timer5_on();
}
int adc_status()
/*& Return the ADC status */
{
return (inp(ADC_STATUS));
}